package com.jianguo.user.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jianguo.common.core.domain.BaseEntity;
import com.jianguo.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;

/**
 * 客户（陪诊员）余额明细对象 pz_money
 *
 * @author hxq
 * @date 2024-03-22
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PzMoney extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 序号 */
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;
    /** 客户id */
    @Excel(name = "客户id")
    private String userid;
    /** 陪诊员id */
    @Excel(name = "陪诊员id")
    private String companionid;
    /** 钱款 */
    @Excel(name = "钱款")
    private Long money;
    /** 收支类型 */
    @Excel(name = "收支类型")
    private String transactionType;
    /** 描述 */
    @Excel(name = "描述")
    private String notes;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userid", getUserid())
                .append("companionid", getCompanionid())
                .append("money", getMoney())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("deleted", getDeleted())
                .append("remark", getRemark())
                .append("transactionType", getTransactionType())
                .append("notes", getNotes())
                .toString();
    }
}
